using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class NewGetInviteFriendResponse : GeneratedMessageLite<NewGetInviteFriendResponse, NewGetInviteFriendResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<NewGetInviteFriendResponse, NewGetInviteFriendResponse.Builder>
		{
			private bool resultIsReadOnly;
			private NewGetInviteFriendResponse result;
			protected override NewGetInviteFriendResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override NewGetInviteFriendResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override NewGetInviteFriendResponse DefaultInstanceForType
			{
				get
				{
					return NewGetInviteFriendResponse.DefaultInstance;
				}
			}
			public BaseResponse BaseResponse
			{
				get
				{
					return this.result.BaseResponse;
				}
				set
				{
					this.SetBaseResponse(value);
				}
			}
			public uint FriendCount
			{
				get
				{
					return this.result.FriendCount;
				}
				set
				{
					this.SetFriendCount(value);
				}
			}
			public IPopsicleList<NewInviteFriend> FriendListList
			{
				get
				{
					return this.PrepareBuilder().friendList_;
				}
			}
			public int FriendListCount
			{
				get
				{
					return this.result.FriendListCount;
				}
			}
			public uint GroupCount
			{
				get
				{
					return this.result.GroupCount;
				}
				set
				{
					this.SetGroupCount(value);
				}
			}
			public IPopsicleList<FriendGroup> GroupListList
			{
				get
				{
					return this.PrepareBuilder().groupList_;
				}
			}
			public int GroupListCount
			{
				get
				{
					return this.result.GroupListCount;
				}
			}
			public Builder()
			{
				this.result = NewGetInviteFriendResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(NewGetInviteFriendResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private NewGetInviteFriendResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					NewGetInviteFriendResponse other = this.result;
					this.result = new NewGetInviteFriendResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override NewGetInviteFriendResponse.Builder Clear()
			{
				this.result = NewGetInviteFriendResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override NewGetInviteFriendResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new NewGetInviteFriendResponse.Builder(this.result);
				}
				return new NewGetInviteFriendResponse.Builder().MergeFrom(this.result);
			}
			public override NewGetInviteFriendResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override NewGetInviteFriendResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is NewGetInviteFriendResponse)
				{
					return this.MergeFrom((NewGetInviteFriendResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override NewGetInviteFriendResponse.Builder MergeFrom(NewGetInviteFriendResponse other)
			{
				return this;
			}
			public override NewGetInviteFriendResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override NewGetInviteFriendResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(NewGetInviteFriendResponse._newGetInviteFriendResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = NewGetInviteFriendResponse._newGetInviteFriendResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 16u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseResponse.Builder builder = BaseResponse.CreateBuilder();
							if (this.result.hasBaseResponse)
							{
								builder.MergeFrom(this.BaseResponse);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseResponse = builder.BuildPartial();
							continue;
						}
						if (num3 == 16u)
						{
							this.result.hasFriendCount = input.ReadUInt32(ref this.result.friendCount_);
							continue;
						}
					}
					else
					{
						if (num3 == 26u)
						{
							input.ReadMessageArray<NewInviteFriend>(num, text, this.result.friendList_, NewInviteFriend.DefaultInstance, extensionRegistry);
							continue;
						}
						if (num3 == 32u)
						{
							this.result.hasGroupCount = input.ReadUInt32(ref this.result.groupCount_);
							continue;
						}
						if (num3 == 42u)
						{
							input.ReadMessageArray<FriendGroup>(num, text, this.result.groupList_, FriendGroup.DefaultInstance, extensionRegistry);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public NewGetInviteFriendResponse.Builder SetBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = value;
				return this;
			}
			public NewGetInviteFriendResponse.Builder SetBaseResponse(BaseResponse.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseResponse = true;
				this.result.baseResponse_ = builderForValue.Build();
				return this;
			}
			public NewGetInviteFriendResponse.Builder MergeBaseResponse(BaseResponse value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseResponse && this.result.baseResponse_ != BaseResponse.DefaultInstance)
				{
					this.result.baseResponse_ = BaseResponse.CreateBuilder(this.result.baseResponse_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseResponse_ = value;
				}
				this.result.hasBaseResponse = true;
				return this;
			}
			public NewGetInviteFriendResponse.Builder ClearBaseResponse()
			{
				this.PrepareBuilder();
				this.result.hasBaseResponse = false;
				this.result.baseResponse_ = null;
				return this;
			}
			public NewGetInviteFriendResponse.Builder SetFriendCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasFriendCount = true;
				this.result.friendCount_ = value;
				return this;
			}
			public NewGetInviteFriendResponse.Builder ClearFriendCount()
			{
				this.PrepareBuilder();
				this.result.hasFriendCount = false;
				this.result.friendCount_ = 0u;
				return this;
			}
			public NewInviteFriend GetFriendList(int index)
			{
				return this.result.GetFriendList(index);
			}
			public NewGetInviteFriendResponse.Builder SetFriendList(int index, NewInviteFriend value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.friendList_[index] = value;
				return this;
			}
			public NewGetInviteFriendResponse.Builder SetFriendList(int index, NewInviteFriend.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.friendList_[index] = builderForValue.Build();
				return this;
			}
			public NewGetInviteFriendResponse.Builder AddFriendList(NewInviteFriend value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.friendList_.Add(value);
				return this;
			}
			public NewGetInviteFriendResponse.Builder AddFriendList(NewInviteFriend.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.friendList_.Add(builderForValue.Build());
				return this;
			}
			public NewGetInviteFriendResponse.Builder AddRangeFriendList(IEnumerable<NewInviteFriend> values)
			{
				this.PrepareBuilder();
				this.result.friendList_.Add(values);
				return this;
			}
			public NewGetInviteFriendResponse.Builder ClearFriendList()
			{
				this.PrepareBuilder();
				this.result.friendList_.Clear();
				return this;
			}
			public NewGetInviteFriendResponse.Builder SetGroupCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasGroupCount = true;
				this.result.groupCount_ = value;
				return this;
			}
			public NewGetInviteFriendResponse.Builder ClearGroupCount()
			{
				this.PrepareBuilder();
				this.result.hasGroupCount = false;
				this.result.groupCount_ = 0u;
				return this;
			}
			public FriendGroup GetGroupList(int index)
			{
				return this.result.GetGroupList(index);
			}
			public NewGetInviteFriendResponse.Builder SetGroupList(int index, FriendGroup value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.groupList_[index] = value;
				return this;
			}
			public NewGetInviteFriendResponse.Builder SetGroupList(int index, FriendGroup.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.groupList_[index] = builderForValue.Build();
				return this;
			}
			public NewGetInviteFriendResponse.Builder AddGroupList(FriendGroup value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.groupList_.Add(value);
				return this;
			}
			public NewGetInviteFriendResponse.Builder AddGroupList(FriendGroup.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.groupList_.Add(builderForValue.Build());
				return this;
			}
			public NewGetInviteFriendResponse.Builder AddRangeGroupList(IEnumerable<FriendGroup> values)
			{
				this.PrepareBuilder();
				this.result.groupList_.Add(values);
				return this;
			}
			public NewGetInviteFriendResponse.Builder ClearGroupList()
			{
				this.PrepareBuilder();
				this.result.groupList_.Clear();
				return this;
			}
		}
		public const int BaseResponseFieldNumber = 1;
		public const int FriendCountFieldNumber = 2;
		public const int FriendListFieldNumber = 3;
		public const int GroupCountFieldNumber = 4;
		public const int GroupListFieldNumber = 5;
		private static readonly NewGetInviteFriendResponse defaultInstance;
		private static readonly string[] _newGetInviteFriendResponseFieldNames;
		private static readonly uint[] _newGetInviteFriendResponseFieldTags;
		private bool hasBaseResponse;
		private BaseResponse baseResponse_;
		private bool hasFriendCount;
		private uint friendCount_;
		private PopsicleList<NewInviteFriend> friendList_ = new PopsicleList<NewInviteFriend>();
		private bool hasGroupCount;
		private uint groupCount_;
		private PopsicleList<FriendGroup> groupList_ = new PopsicleList<FriendGroup>();
		private int memoizedSerializedSize = -1;
		public static NewGetInviteFriendResponse DefaultInstance
		{
			get
			{
				return NewGetInviteFriendResponse.defaultInstance;
			}
		}
		public override NewGetInviteFriendResponse DefaultInstanceForType
		{
			get
			{
				return NewGetInviteFriendResponse.DefaultInstance;
			}
		}
		protected override NewGetInviteFriendResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseResponse BaseResponse
		{
			get
			{
				return this.baseResponse_ ?? BaseResponse.DefaultInstance;
			}
		}
		public uint FriendCount
		{
			get
			{
				return this.friendCount_;
			}
		}
		public IList<NewInviteFriend> FriendListList
		{
			get
			{
				return this.friendList_;
			}
		}
		public int FriendListCount
		{
			get
			{
				return this.friendList_.Count;
			}
		}
		public uint GroupCount
		{
			get
			{
				return this.groupCount_;
			}
		}
		public IList<FriendGroup> GroupListList
		{
			get
			{
				return this.groupList_;
			}
		}
		public int GroupListCount
		{
			get
			{
				return this.groupList_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				if (!this.hasBaseResponse)
				{
					return false;
				}
				if (!this.hasFriendCount)
				{
					return false;
				}
				if (!this.hasGroupCount)
				{
					return false;
				}
				if (!this.BaseResponse.IsInitialized)
				{
					return false;
				}
				using (IEnumerator<NewInviteFriend> enumerator = this.FriendListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						NewInviteFriend current = enumerator.get_Current();
						if (!current.IsInitialized)
						{
							bool result = false;
							return result;
						}
					}
				}
				using (IEnumerator<FriendGroup> enumerator2 = this.GroupListList.GetEnumerator())
				{
					while (enumerator2.MoveNext())
					{
						FriendGroup current2 = enumerator2.get_Current();
						if (!current2.IsInitialized)
						{
							bool result = false;
							return result;
						}
					}
				}
				return true;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseResponse)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseResponse);
				}
				if (this.hasFriendCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.FriendCount);
				}
				using (IEnumerator<NewInviteFriend> enumerator = this.FriendListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						NewInviteFriend current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(3, current);
					}
				}
				if (this.hasGroupCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.GroupCount);
				}
				using (IEnumerator<FriendGroup> enumerator2 = this.GroupListList.GetEnumerator())
				{
					while (enumerator2.MoveNext())
					{
						FriendGroup current2 = enumerator2.get_Current();
						num += CodedOutputStream.ComputeMessageSize(5, current2);
					}
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private NewGetInviteFriendResponse()
		{
		}
		public NewInviteFriend GetFriendList(int index)
		{
			return this.friendList_[index];
		}
		public FriendGroup GetGroupList(int index)
		{
			return this.groupList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] newGetInviteFriendResponseFieldNames = NewGetInviteFriendResponse._newGetInviteFriendResponseFieldNames;
			if (this.hasBaseResponse)
			{
				output.WriteMessage(1, newGetInviteFriendResponseFieldNames[0], this.BaseResponse);
			}
			if (this.hasFriendCount)
			{
				output.WriteUInt32(2, newGetInviteFriendResponseFieldNames[1], this.FriendCount);
			}
			if (this.friendList_.Count > 0)
			{
				output.WriteMessageArray<NewInviteFriend>(3, newGetInviteFriendResponseFieldNames[2], this.friendList_);
			}
			if (this.hasGroupCount)
			{
				output.WriteUInt32(4, newGetInviteFriendResponseFieldNames[3], this.GroupCount);
			}
			if (this.groupList_.Count > 0)
			{
				output.WriteMessageArray<FriendGroup>(5, newGetInviteFriendResponseFieldNames[4], this.groupList_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseResponse)
			{
				num ^= this.baseResponse_.GetHashCode();
			}
			if (this.hasFriendCount)
			{
				num ^= this.friendCount_.GetHashCode();
			}
			using (IEnumerator<NewInviteFriend> enumerator = this.friendList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					NewInviteFriend current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			if (this.hasGroupCount)
			{
				num ^= this.groupCount_.GetHashCode();
			}
			using (IEnumerator<FriendGroup> enumerator2 = this.groupList_.GetEnumerator())
			{
				while (enumerator2.MoveNext())
				{
					FriendGroup current2 = enumerator2.get_Current();
					num ^= current2.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object value)
		{
			NewGetInviteFriendResponse newGetInviteFriendResponse = value as NewGetInviteFriendResponse;
			if (newGetInviteFriendResponse == null)
			{
				return false;
			}
			if (this.hasBaseResponse != newGetInviteFriendResponse.hasBaseResponse || (this.hasBaseResponse && !this.baseResponse_.Equals(newGetInviteFriendResponse.baseResponse_)))
			{
				return false;
			}
			if (this.hasFriendCount != newGetInviteFriendResponse.hasFriendCount || (this.hasFriendCount && !this.friendCount_.Equals(newGetInviteFriendResponse.friendCount_)))
			{
				return false;
			}
			if (this.friendList_.Count != newGetInviteFriendResponse.friendList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.friendList_.Count; i++)
			{
				if (!this.friendList_[i].Equals(newGetInviteFriendResponse.friendList_[i]))
				{
					return false;
				}
			}
			if (this.hasGroupCount != newGetInviteFriendResponse.hasGroupCount || (this.hasGroupCount && !this.groupCount_.Equals(newGetInviteFriendResponse.groupCount_)))
			{
				return false;
			}
			if (this.groupList_.Count != newGetInviteFriendResponse.groupList_.Count)
			{
				return false;
			}
			for (int j = 0; j < this.groupList_.Count; j++)
			{
				if (!this.groupList_[j].Equals(newGetInviteFriendResponse.groupList_[j]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<NewGetInviteFriendResponse, NewGetInviteFriendResponse.Builder>.PrintField("BaseResponse", this.hasBaseResponse, this.baseResponse_, writer);
			GeneratedMessageLite<NewGetInviteFriendResponse, NewGetInviteFriendResponse.Builder>.PrintField("FriendCount", this.hasFriendCount, this.friendCount_, writer);
			GeneratedMessageLite<NewGetInviteFriendResponse, NewGetInviteFriendResponse.Builder>.PrintField<NewInviteFriend>("FriendList", this.friendList_, writer);
			GeneratedMessageLite<NewGetInviteFriendResponse, NewGetInviteFriendResponse.Builder>.PrintField("GroupCount", this.hasGroupCount, this.groupCount_, writer);
			GeneratedMessageLite<NewGetInviteFriendResponse, NewGetInviteFriendResponse.Builder>.PrintField<FriendGroup>("GroupList", this.groupList_, writer);
		}
		public static NewGetInviteFriendResponse ParseFrom(byte[] data)
		{
			return NewGetInviteFriendResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private NewGetInviteFriendResponse MakeReadOnly()
		{
			this.friendList_.MakeReadOnly();
			this.groupList_.MakeReadOnly();
			return this;
		}
		public static NewGetInviteFriendResponse.Builder CreateBuilder()
		{
			return new NewGetInviteFriendResponse.Builder();
		}
		public override NewGetInviteFriendResponse.Builder ToBuilder()
		{
			return NewGetInviteFriendResponse.CreateBuilder(this);
		}
		public override NewGetInviteFriendResponse.Builder CreateBuilderForType()
		{
			return new NewGetInviteFriendResponse.Builder();
		}
		public static NewGetInviteFriendResponse.Builder CreateBuilder(NewGetInviteFriendResponse prototype)
		{
			return new NewGetInviteFriendResponse.Builder(prototype);
		}
		static NewGetInviteFriendResponse()
		{
			NewGetInviteFriendResponse.defaultInstance = new NewGetInviteFriendResponse().MakeReadOnly();
			NewGetInviteFriendResponse._newGetInviteFriendResponseFieldNames = new string[]
			{
				"BaseResponse",
				"FriendCount",
				"FriendList",
				"GroupCount",
				"GroupList"
			};
			NewGetInviteFriendResponse._newGetInviteFriendResponseFieldTags = new uint[]
			{
				10u,
				16u,
				26u,
				32u,
				42u
			};
			object.ReferenceEquals(micromsg.Proto.NewGetInviteFriendResponse.Descriptor, null);
		}
	}
}
